<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$lang.home}{if $ur_here} - {$ur_here} {/if}</title>
<meta name="Copyright" content="Douco Design." />
<link href="templates/public.css" rel="stylesheet" type="text/css">
{include file="javascript.htm"}
<script type="text/javascript" src="images/laydate/laydate.js"></script>
<script type="text/javascript" src="images/layer/layer.js"></script>
</head>
<body>
<div id="dcWrap">
 {include file="header.htm"}
 <div id="dcLeft">{include file="menu.htm"}</div>
 <div id="dcMain">
   {include file="ur_here.htm"}
   <div id="coupon" class="mainBox" style="{$workspace.height}">
    <h3><!-- {if $rec neq 'coupon_log'} 管理员列表 --><a href="{$action_link.href}" class="actionBtn">{$action_link.text}</a><!-- {/if} -->{$ur_here}</h3>
    
    <!-- {if $rec eq 'default'} 管理员列表 -->
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
      <th width="30" align="center">{$lang.record_id}</th>
      <th align="center">{$lang.coupon_name}</th>
      <th align="center">{$lang.user_id}</th>
      <th align="center">{$lang.coupon_price}</th>
      <th align="center">{$lang.min_price}</th>
      <th align="center">{$lang.coupon_no}</th>
      <th align="center">{$lang.use_starttime}</th>
      <th align="center">{$lang.use_endtime}</th>
      <th align="center">{$lang.used_time}</th>
      <th align="center">{$lang.order_no}</th>
      <th align="center">{$lang.handler}</th>
     </tr>
     <!-- {foreach from=$coupon_list item=coupon} -->
     <tr>
      <td align="center">{$coupon.coupon_id}</td>
      <td align="center">{$coupon.coupon_name}</td>
      <td align="center">{$coupon.user_id}</td>
      <td align="center">{$coupon.coupon_price}</td>
      <td align="center">{$coupon.min_price}</td>
      <td align="center">{$coupon.coupon_no}</td>
      <td align="center">{$coupon.use_starttime}</td>
      <td align="center">{$coupon.use_endtime}</td>
      <td align="center">{$coupon.used_time}</td>
      <td align="center">{$coupon.order_no}</td>
      <td align="center"><a href="coupon.php?rec=del&coupon_id={$coupon.id}">{$lang.del}</a></td>
     </tr>
     <!-- {/foreach} -->
    </table>
    {include file="pager.htm"}
    <!-- {/if} -->

    <!-- {if $rec eq 'add'} 添加 -->
    <form action="coupon.php?rec=add" method="post">
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
      <tr>
       <td width="100" align="right">{$lang.coupon_name}</td>
       <td><input type="text" name="coupon_name" size="40" class="inpMain" /></td>
      </tr>
      <tr>
       <td width="100" align="right">{$lang.coupon_price}</td>
       <td><input type="text" name="coupon_price" size="40" class="inpMain" /></td>
      </tr>
      <tr>
       <td width="100" align="right">{$lang.min_price}</td>
       <td><input type="text" name="min_price" size="40" class="inpMain" /></td>
      </tr>
      <tr>
       <td width="100" align="right">{$lang.use_starttime}</td>
       <td><input type="text" value="{$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'}" name="use_starttime" size="40" class="inpMain" {literal}onclick="laydate.skin('danlan');laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"{/literal} /></td>
      </tr>
      <tr>
       <td width="100" align="right">{$lang.use_endtime}</td>
       <td><input type="text" name="use_endtime" size="40" class="inpMain" {literal}onclick="laydate.skin('danlan');laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"{/literal} /></td>
      </tr>
      <tr>
       <td width="100" align="right">{$lang.for_user}</td>
       <td><input type="text" name="for_user" size="40" class="inpMain" /> {$lang.for_user_tip}</td>
      </tr>
      <tr>
       <td></td>
       <td>
        <input type="hidden" name="token" value="{$token}" />
        <input type="submit" name="submit" class="btn" value="{$lang.btn_submit}" />
       </td>
      </tr>
     </table>
    </form>
    <!-- {/if} -->

   </div>
 </div>
 {include file="footer.htm"}
 </div>
</body>
</html>